package com.vince.hulk.tutorial
{
import org.flixel.FlxSprite;

/**
 * author yangwz
 */		
public class TabTutorial extends FlxSprite
{
	//==========================================================================
	//  Constructor
	//==========================================================================
	/**
	 * Constructs a new <code>TabTutorial</code> instance.
	 * 
	 */
	public function TabTutorial(X:Number=0, Y:Number=0, direction:int = 1)
	{
		super(X, Y, null);
		if (direction == 1)
		{
			facing = RIGHT;
		}
		else
		{
			facing = LEFT;
		}
		loadGraphic(tab, true, true, 82, 82);
		addAnimation("test", [0, 1], 2, true);
	}
	//==========================================================================
	//  Variables
	//==========================================================================
	[Embed(source = "assets/TabTutorial.png")]
	private var tab:Class;
	//==========================================================================
	//  Methods
	//==========================================================================
	override public function update():void
	{
		play("test");
		super.update();
	}
}
}